combobox: Remove unused variables
authorBenjamin Otte <otte@redhat.com>
Tue, 28 Jul 2015 17:21:15 +0000 (19:21 +0200)
committerBenjamin Otte <otte@redhat.com>
Fri, 31 Jul 2015 02:03:44 +0000 (04:03 +0200)
gtk/gtkcombobox.c

index 3d5545a5b472d62928200ee0a7b221aae1397b0d..3c79f912e7067f7a594af6e533ef742ce7bb6afb 100644 (file)
@@ -5461,14 +5461,12 @@ gtk_combo_box_get_preferred_height_for_width (GtkWidget *widget,
     {
       /* list mode */
       gint but_width, but_height;
-      gint xpad = 0, ypad = 0;
 
       gtk_widget_get_preferred_width (priv->button, &but_width, NULL);
       gtk_widget_get_preferred_height_for_width (priv->button,
                                                  but_width, &but_height, NULL);
 
       size -= but_width;
-      size -= xpad;
 
       /* Get height-for-width of the child widget, usually a GtkCellArea calculating
        * and fitting the whole treemodel */
@@ -5476,9 +5474,6 @@ gtk_combo_box_get_preferred_height_for_width (GtkWidget *widget,
 
       min_height = MAX (min_height, but_height);
       nat_height = MAX (nat_height, but_height);
-
-      min_height += ypad;
-      nat_height += ypad;
     }
 
   min_height += padding.top + padding.bottom;